<?php
namespace builder;

//导演者类
class Director
{
    public function build(BuilderInterface $builder) : Vehicle
    {
        $builder->createVehicle();
        $builder->addEngine();
        $builder->addWheel();
        $builder->addDoors();
        return $builder->getVehicle();
    }

}